package main

import (
	"fmt"
	"html/template"
	"log"
	"net/http"
	//"encoding/hex"
)

func webSocketClient(w http.ResponseWriter, r *http.Request) {
	t, _ := template.ParseFiles("webSocket.html")
	temp := t.Execute(w, nil)
	log.Println(temp)
}

func main() {
	fmt.Println("Web start")
	http.HandleFunc("/webSocketClient", webSocketClient)
	err := http.ListenAndServe(":9090", nil)
	if err != nil {
		log.Fatal("langxw Listen and serve", err)
	} else {
		fmt.Println("Web ready")
	}
}
